class Line {
	constructor(arg) {
		this.id = new Date().getTime();
		this.info = arg;
		let e = arguments[0];
		/* 鼠标按下创建一条线 */
		var svg_line = document.createElementNS("http://www.w3.org/2000/svg", "line");
		svg_line.setAttribute("x1", e.screenX);
		svg_line.setAttribute("y1", e.screenY);
		this.svg_line = svg_line;
	}

	getElement() {
		return this.svg_line;
	}
}
